package com.dc.gameserver.serverCore.model.dbsql.modelVo;

import java.io.Serializable;

public class TRoleItemProps implements Serializable {
    private Integer propsid;

    private Integer propstypeid;

    private Byte propspinzhi;

    private Integer propsnum;

    private Long propstimeout;

    private Integer ownerid;

    private Byte itemtype;

    private Byte dayuselimit;

    private Byte type;

    private static final long serialVersionUID = 1L;

    public Integer getPropsid() {
        return propsid;
    }

    public void setPropsid(Integer propsid) {
        this.propsid = propsid;
    }

    public Integer getPropstypeid() {
        return propstypeid;
    }

    public void setPropstypeid(Integer propstypeid) {
        this.propstypeid = propstypeid;
    }

    public Byte getPropspinzhi() {
        return propspinzhi;
    }

    public void setPropspinzhi(Byte propspinzhi) {
        this.propspinzhi = propspinzhi;
    }

    public Integer getPropsnum() {
        return propsnum;
    }

    public void setPropsnum(Integer propsnum) {
        this.propsnum = propsnum;
    }

    public Long getPropstimeout() {
        return propstimeout;
    }

    public void setPropstimeout(Long propstimeout) {
        this.propstimeout = propstimeout;
    }

    public Integer getOwnerid() {
        return ownerid;
    }

    public void setOwnerid(Integer ownerid) {
        this.ownerid = ownerid;
    }

    public Byte getItemtype() {
        return itemtype;
    }

    public void setItemtype(Byte itemtype) {
        this.itemtype = itemtype;
    }

    public Byte getDayuselimit() {
        return dayuselimit;
    }

    public void setDayuselimit(Byte dayuselimit) {
        this.dayuselimit = dayuselimit;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TRoleItemProps other = (TRoleItemProps) that;
        return (this.getPropsid() == null ? other.getPropsid() == null : this.getPropsid().equals(other.getPropsid()))
            && (this.getPropstypeid() == null ? other.getPropstypeid() == null : this.getPropstypeid().equals(other.getPropstypeid()))
            && (this.getPropspinzhi() == null ? other.getPropspinzhi() == null : this.getPropspinzhi().equals(other.getPropspinzhi()))
            && (this.getPropsnum() == null ? other.getPropsnum() == null : this.getPropsnum().equals(other.getPropsnum()))
            && (this.getPropstimeout() == null ? other.getPropstimeout() == null : this.getPropstimeout().equals(other.getPropstimeout()))
            && (this.getOwnerid() == null ? other.getOwnerid() == null : this.getOwnerid().equals(other.getOwnerid()))
            && (this.getItemtype() == null ? other.getItemtype() == null : this.getItemtype().equals(other.getItemtype()))
            && (this.getDayuselimit() == null ? other.getDayuselimit() == null : this.getDayuselimit().equals(other.getDayuselimit()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPropsid() == null) ? 0 : getPropsid().hashCode());
        result = prime * result + ((getPropstypeid() == null) ? 0 : getPropstypeid().hashCode());
        result = prime * result + ((getPropspinzhi() == null) ? 0 : getPropspinzhi().hashCode());
        result = prime * result + ((getPropsnum() == null) ? 0 : getPropsnum().hashCode());
        result = prime * result + ((getPropstimeout() == null) ? 0 : getPropstimeout().hashCode());
        result = prime * result + ((getOwnerid() == null) ? 0 : getOwnerid().hashCode());
        result = prime * result + ((getItemtype() == null) ? 0 : getItemtype().hashCode());
        result = prime * result + ((getDayuselimit() == null) ? 0 : getDayuselimit().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        return result;
    }
}